Skip to content

feat: add BlocksByRange req/resp protocol#691

Open
akronim26 wants to merge 7 commits intoleanEthereum:mainfrom
akronim26:req-resp
Open

feat: add BlocksByRange req/resp protocol#691
akronim26 wants to merge 7 commits intoleanEthereum:mainfrom
akronim26:req-resp

Conversation

@akronim26
Copy link
Copy Markdown
Contributor

🗒️ Description

This PR adds the BlocksByRange req/resp protocol to ease the sync by fetching the blocks by range instead of fetching by roots

🔗 Related Issues or PRs

Fixes #688

✅ Checklist

  • Ran tox checks to avoid unnecessary CI fails:
    uvx tox
  • Considered adding appropriate tests for the changes.
  • Considered updating the online docs in the ./docs/ directory.

This commit adds the server-side handler for the BlocksByRange protocol, integrates it into the SyncService, and enhances the backfill synchronization with range-based fetching. It also includes a strict SSZ validation fix for fixed-size containers to ensure malformed oversized payloads are correctly rejected.
This commit addresses multiple linting violations (E501 line length), fixes missing imports in head_sync.py and test helpers, and restores/enhances test coverage for malformed SSZ payloads in the request/response layer.
@akronim26 akronim26 marked this pull request as draft April 29, 2026 17:58
@akronim26 akronim26 marked this pull request as ready for review April 29, 2026 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add BlocksByRange req/resp protocol

1 participant